package com.frontop.system.modules.sale.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 * 营销信息
 * </p>
 *
 * @author YangJia
 * @since 2022-04-24
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="SaleInfo对象", description="营销信息")
public class SaleInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "营销名字")
    private String saleName;

    @ApiModelProperty(value = "营销手机号")
    private String salePhone;

    private String headPath;

    @ApiModelProperty(value = "营销所属企业")
    private Integer organization;
    private String uuid;
    private Integer status;

    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")//set
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")//get
    @ApiModelProperty(value = "添加时间")
    private Date createTime;



    @TableField(exist = false)
    private String organizationName;

}
